import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		todayPlan: {},
	},
	mutations: {
		setTodayPlan(state, data) {
			state.todayPlan = data
		}
	},
	actions: {
		setTodayPlanActions(context, data) {
			context.commit('setTodayPlan', data)
		}
	}
})

export default store
